﻿<Page
    x:Class="CalciumTemplateApp.UI.AboutView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:CalciumTemplateApp.UI"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
		
        <StackPanel Margin="0,12,0,12">
            <TextBlock 
                Text="{x:Bind Model.Strings.Views_About_AppDescription, FallbackValue=description}"
                TextWrapping="Wrap" />
            <TextBlock             
                Text="{x:Bind Model.Strings.Views_About_CreatedBy, FallbackValue=createdBy}"
                TextWrapping="Wrap" 
                Margin="0,12" />
			<StackPanel Orientation="Horizontal">
				<TextBlock             
					Text="{x:Bind Model.Strings.Views_About_Version, FallbackValue=version}" />
				<TextBlock             
					Text="{x:Bind Model.Version, FallbackValue=1.0}" />
            </StackPanel>
        </StackPanel>

        <StackPanel 
            Grid.Row="1"
            Orientation="Horizontal" VerticalAlignment="Bottom">
            <TextBlock VerticalAlignment="Bottom" Text="Fortified with" Padding="12,12,0,12" />
            <HyperlinkButton Content="Calcium" 
                             NavigateUri="http://www.calciumsdk.net"
							 VerticalAlignment="Bottom" Margin="0" Padding="6,12,12,12" />
        </StackPanel>
    </Grid>
</Page>
